from examples.reinforcement_learning_trading import DQNAgent, TradingEnvironment

# 创建环境和智能体
env = TradingEnvironment(data)
agent = DQNAgent(state_size, action_size)

# 训练
results = TradingBacktester.run_backtest(agent, env, episodes=100)

